﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebComponents;

public partial class FileManager_Default : System.Web.UI.Page {
  public string controlId = "";
  public string imageId = "";
  protected void Page_Load(object sender, EventArgs e) {
    controlId = ConvertType.ToString(Request.Params["controlId"]);
    imageId = ConvertType.ToString(Request.Params["imageId"]);
    AuthenticateFileManager();
    Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
    Response.Cache.SetCacheability(HttpCacheability.NoCache);
    Response.Cache.SetNoStore();
  }



  // chnage this funcation if you want to create your Authenticate 
  public void AuthenticateFileManager() {

    /* Edit this funcation to  AuthenticateFileManager*/
    string SessionID = Request["sessionid"].ToString();

    if (Request.Cookies[SessionID] != null) {

    } else {
      Response.Clear();
      Response.Write("Access Denied");
      Response.End();
    }

  }
}